package com.wis.traffic.entity.dao;

public class Page {
    private Integer pageNo;     //当前页
    private Integer pageCount;  //总页数
    private Integer totle;      //数据总量
    //每页显示的数量
    private int numofPage = 20;

    public Integer getPageNo() {
        return pageNo;
    }

    public void setPageNo(Integer pageNo) {
        this.pageNo = pageNo;
    }

    public Integer getPageCount() {
        return pageCount;
    }

    /*public void setPageCount(int pageCount) {
        this.pageCount = pageCount;
    }*/

    public Integer getTotle() {
        return totle;
    }

    public void setTotle(Integer totle) {
        this.totle = totle;
        this.pageCount = this.totle/this.numofPage + 1;
    }

    public void setNumofPage(int numofPage) {
        this.numofPage = numofPage;
    }

    public int getNumofPage() {
        return numofPage;
    }
}
